package com.hqyj.cl.service.impl;

import com.hqyj.cl.mapper.InfoMapper;
import com.hqyj.cl.service.InfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.Map;

@Service
public class InfoServiceImpl implements InfoService {
    @Autowired
    private InfoMapper infoMapper;

    //selectAllinfo
    @Override
    public Map<String, Integer> selectAllInfo() {
        int sum=infoMapper.selectAllInfo();
        Map<String, Integer> sumMap=new HashMap<>();
        sumMap.put("allSum",sum);
        return sumMap;
    }
}
